package com.bls.cate.test.Base;

import com.bls.cate.test2.base.BaseView;
import com.lzy.okgo.model.Response;

public interface BaseModelCallback {
    public enum RequestNetState {
        onStart,
        onSuccess,
        onCacheSuccess,
        onError,
        onFinish
    }

    /**
     * 网络请求返回结果
     *
     * @param requestId       请求编号
     * @param requestNetState 网络请求返回状态
     * @param responseBody    返回结果
     * @param response        返回结果
     */
    void onRequestNetResult(int requestId, BaseModelCallback.RequestNetState requestNetState, String responseBody, Response response);
}
